package com.wn.purchaeReturn.service.impl;

import com.wn.purchaeReturn.dao.PurPurchasebillDao;
import com.wn.purchaeReturn.entity.PurPurchasebill;
import com.wn.purchaeReturn.service.PurchaseBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: yyc
 * @Date: 2022-04-17-20:14
 * @Description:
 */
@Service
@Transactional
public class PurchaseBillServiceImpl implements PurchaseBillService {
    @Autowired
    private PurPurchasebillDao purPurchasebillDao;
    @Override
    public PurPurchasebill selectPurchaseBillid(String purchaseno) {
        return purPurchasebillDao.selectByPrimaryKey(purchaseno);
    }

    @Override
    public List<PurPurchasebill> selectAllPurchaseBillid() {
        return purPurchasebillDao.selectAll();
    }
}
